package com.hh.test.design.builder;

public class Product {

	public Product(PartA partA, PartB partB, PartC partC) {
		super();
		this.partA = partA;
		this.partB = partB;
		this.partC = partC;
	}

	private PartA partA;
	private PartB partB;
	private PartC partC;

	public PartA getPartA() {
		return partA;
	}

	public void setPartA(PartA partA) {
		this.partA = partA;
	}

	public PartB getPartB() {
		return partB;
	}

	public void setPartB(PartB partB) {
		this.partB = partB;
	}

	public PartC getPartC() {
		return partC;
	}

	public void setPartC(PartC partC) {
		this.partC = partC;
	}

	@Override
	public String toString() {
		return "Product [partA=" + partA + ", partB=" + partB + ", partC="
				+ partC + "]";
	}

	public void print() {
		System.out.println(partA);
		System.out.println(partB);
		System.out.println(partC);

	}
}
